<?php
/**
 * Created by PhpStorm.
 * User: Zhoujinda
 * Date: 2016/4/12
 * Time: 11:16
 */
namespace Webview\Controller;
use Shop\Api\ProductApi;

class ProductController extends WebViewController{

    protected function _initialize(){

        // 获取配置
        $this -> getConfig();
    }

    public function detail(){

        $id = I('get.id',-1);

        $map = array(
            'id' => $id
        );
        $result = apiCall(ProductApi::GET_INFO,array($map));
        if($result['status']){

            $this->assign('detail',htmlspecialchars_decode($result['info']['detail']));

        }else{

        }
        
        $this->display();

    }
}